<template>
  <div class="mask-css">
    测试遮盖层
    <!--添加遮盖层 -->
    <div class="mask" @touchumove.prevent>
      <div class="content">我是弹框</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "MaskCss",
  data() {
    return {};
  },
  methods: {}
};
</script>

<style lang="stylus" scoped>
.mask-css {
  .mask {
    position: fixed
    top: 0
    left: 0
    display: flex
    justify-content: center
    align-items: center
    width: 100%
    height: 100%
    background-color: rgba(51, 51, 51, 0.6) // color颜色，alpha透明度
    .content {
      padding: 20px
      height: 100px
      background-color: #fff
      width: 300px
      overflow: auto
    }
  }
}
</style>
